package demo;

import demo.VO.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        User user = (User) context.getBean("user");
    /*    User user1 = (User) context.getBean("user");
        User user2 = (User) context.getBean("user0");*/
        System.out.println(user);
/*        System.out.println(user1);
        System.out.println(user2);*/
    }
}
